# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-admin
pkgver=1.6.1
pkgrel=1
pkgdesc="Flask admin interface"
url="https://pypi.org/project/Flask-Admin"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-flask
	py3-wtforms
"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/F/Flask-Admin/Flask-Admin-$pkgver.tar.gz"
builddir="$srcdir"/Flask-Admin-$pkgver

replaces="py-flask-admin" # Backwards compatibility
provides="py-flask-admin=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3defe8eecaf96a775b93de761ffc51c80950f3dc71d005830aabfb24e019d9c4fc3fe9a69805b7b227b13693708f3aa381206cf1240b9fe5efb28c1bee44503d  Flask-Admin-1.6.1.tar.gz
"
